<template>
  <div class="xpanel-label xlabel-wrapper">
    <div class="xlabel-wrapper-middle">
      <a class="xchart-title3">
        <span v-if="item.icon?true:false" class="xlabel-icon-wranning"></span>
        <span
            v-if="item.labelOption.title instanceof String">{{ item.labelOption.title ? item.labelOption.title : "" }}</span>
        <template v-if="item.labelOption.title instanceof Array"><span
            v-for="labelTitle in item.labelOption.title">{{ labelTitle }}</span></template>
        <span class="label-value xlabel-float-right"
              :level="item.labelOption.level?item.labelOption.level:''">{{ item.labelOption.value ? item.labelOption.value : '' }}</span>
        <span
            class="label-unit xlabel-float-right">{{ item.labelOption.unit ? item.labelOption.unit : '' }}</span>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "xMoniTitle",
  props: {
    item: {
      type: Object,
      default: () => {
      }
    },
  },
}
</script>
<style lang="css" scoped src="@/components/bigScreen/css/screen.main.css"></style>
<style scoped>

</style>
